package com.vpx.server.service.system;

import com.vpx.server.bean.order.base.BaseDeleteOrder;
import com.vpx.server.bean.order.base.BaseIdOrder;
import com.vpx.server.bean.order.system.SysMenuOrder;
import com.vpx.server.bean.order.system.SysMenuParentIdOrder;
import com.vpx.server.bean.result.base.BaseDeleteResult;
import com.vpx.server.bean.result.system.SysMenuListResult;
import com.vpx.server.bean.result.system.SysMenuResult;
import com.vpx.server.framework.base.ResultMsg;

/**
 * @author liuks
 * @title: vpx
 * @module 菜单
 * @description: 菜单业务
 * @date 2021/9/7 19:15
 */
public interface SysMenuService {

    /**
     * 新增菜单
     * @param order
     * @return
     */
    ResultMsg insert(SysMenuOrder order);

    /**
     * 修改菜单
     *
     * @param order
     * @return
     */
    ResultMsg updateById(SysMenuOrder order);

    /**
     * 删除菜单
     *
     * @param order
     * @return
     */
    ResultMsg<BaseDeleteResult> deleteById(BaseDeleteOrder order);

    /**
     * 查询菜单信息
     *
     * @param order
     * @return
     */
    ResultMsg<SysMenuResult> findById(BaseIdOrder order);

    /**
     * 查询菜单列表
     * @param order
     * @return
     */
    ResultMsg<SysMenuListResult> findListByParentId(SysMenuParentIdOrder order);
}
